package com.gton.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @description:使用本注解可以支持Swagger文档扫描
 * @author: GuoTong
 * @createTime: 2022-09-24 15:46
 * @since JDK 1.8 OR 11
 **/
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface SwaggerScanClass {
    /**
     * Description: 需要被Swagger2加入
     *
     * @author: GuoTong
     * @date: 2022-09-24 15:47:10
     */
    boolean required() default true;

}
